package com.edu.base.ums.umsMember.service;

import java.util.List;
import java.util.Map;

import com.edu.base.ums.umsMember.domain.UmsMember;

/**
 * 会员Service接口
 * 
 * @author lzs
 * @date 2021-02-21
 */
public interface IUmsMemberRyService 
{
    /**
     * 查询会员
     * 
     * @param id 会员ID
     * @return 会员
     */
    public UmsMember selectUmsMemberRyById(Long id);

    /**
     * 查询会员列表
     * 
     * @param umsMemberRy 会员
     * @return 会员集合
     */
    public List<UmsMember> selectUmsMemberRyList(UmsMember umsMemberRy);

    /**
     * 新增会员
     * 
     * @param umsMemberRy 会员
     * @return 结果
     */
    public int insertUmsMemberRy(UmsMember umsMemberRy);

    /**
     * 修改会员
     * 
     * @param umsMemberRy 会员
     * @return 结果
     */
    public int updateUmsMemberRy(UmsMember umsMemberRy);

    /**
     * 批量删除会员
     * 
     * @param ids 需要删除的会员ID
     * @return 结果
     */
    public int deleteUmsMemberRyByIds(Long[] ids);

    /**
     * 删除会员信息
     * 
     * @param id 会员ID
     * @return 结果
     */
    public int deleteUmsMemberRyById(Long id);

	String genSeqNo(int length, String applicationScopeType);

	public UmsMember checkThirdPartyBindingUser(String thirdType, String thirdPartyId);

	public Map<String, Object> bindingLoginSetToken(UmsMember user);

	UmsMember userBindingThirdParty(String thirdPartyId, String phone, String thirdType, String passWord,
			String nickName, String icon);

	/***
	 * 手机号
	 * @param phone
	 */
	public void insertUmsMemberRyByPHone(String phone);


 }
